/*
 * Powered By [fdlm]
 * Web Site: http://www.fdlm.cn
 * Since 2014 - 2015
 */

package com.sjyy.patientevaluate.model;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import cn.org.rapid_framework.util.DateConvertUtils;

import java.util.*;

import com.sjyy.patientevaluate.model.*;
import com.sjyy.patientevaluate.service.*;
import com.sjyy.patientevaluate.vo.query.*;

import javacommon.base.*;
import javacommon.util.*;
import javacommon.page.Page;

/**
 * @author cty email:caotianye@fdlm.cn
 * @version 1.0
 * @since 1.0
 */


public class PatientEvaluate extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "PatientEvaluate";
	public static final String ALIAS_PATIENT_EVALUATE_ID = "patientEvaluateId";
	public static final String ALIAS_PATIENT_ID = "patientId";
	public static final String ALIAS_ORDER_NUMBER = "orderNumber";
	public static final String ALIAS_CANNEL_NUMBER = "cannelNumber";
	
	//date formats
	
	//columns START
    /** patientEvaluateId       db_column: patient_evaluate_id */	
	
	private java.lang.Integer patientEvaluateId;
    /** patientId       db_column: patient_id */	
	@NotNull 
	private java.lang.Integer patientId;
    /** orderNumber       db_column: order_number */	
	
	private java.lang.Integer orderNumber;
    /** cannelNumber       db_column: cannel_number */	
	
	private java.lang.Integer cannelNumber;
	//columns END

	public PatientEvaluate(){
	}

	public PatientEvaluate(
		java.lang.Integer patientEvaluateId
	){
		this.patientEvaluateId = patientEvaluateId;
	}

	public void setPatientEvaluateId(java.lang.Integer value) {
		this.patientEvaluateId = value;
	}
	
	public java.lang.Integer getPatientEvaluateId() {
		return this.patientEvaluateId;
	}
	public void setPatientId(java.lang.Integer value) {
		this.patientId = value;
	}
	
	public java.lang.Integer getPatientId() {
		return this.patientId;
	}
	public void setOrderNumber(java.lang.Integer value) {
		this.orderNumber = value;
	}
	
	public java.lang.Integer getOrderNumber() {
		return this.orderNumber;
	}
	public void setCannelNumber(java.lang.Integer value) {
		this.cannelNumber = value;
	}
	
	public java.lang.Integer getCannelNumber() {
		return this.cannelNumber;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("PatientEvaluateId",getPatientEvaluateId())
			.append("PatientId",getPatientId())
			.append("OrderNumber",getOrderNumber())
			.append("CannelNumber",getCannelNumber())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getPatientEvaluateId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof PatientEvaluate == false) return false;
		if(this == obj) return true;
		PatientEvaluate other = (PatientEvaluate)obj;
		return new EqualsBuilder()
			.append(getPatientEvaluateId(),other.getPatientEvaluateId())
			.isEquals();
	}
}

